package com.zhenhunfan.spring.boot.samples.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author zhenhunfan
 * @since 2023-11-14 16:49:08
 */
@TableName("sys_role")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 角色代码
     */
    private String name;

    /**
     * 角色说明
     */
    private String description;

    /**
     * 角色状态
     */
    private Integer status;

    private Date createTime;

    private Date updateTime;

    /**
     * 0-移动端、web端都可以;1-web端;2-移动端
     */
    private Integer deviceEnabled;

    /**
     * 角色级别
     */
    private Integer level;

    /**
     * 数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）
     */
    private Integer dataScope;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDeviceEnabled() {
        return deviceEnabled;
    }

    public void setDeviceEnabled(Integer deviceEnabled) {
        this.deviceEnabled = deviceEnabled;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getDataScope() {
        return dataScope;
    }

    public void setDataScope(Integer dataScope) {
        this.dataScope = dataScope;
    }

    @Override
    public String toString() {
        return "Role{" +
            "id = " + id +
            ", name = " + name +
            ", description = " + description +
            ", status = " + status +
            ", createTime = " + createTime +
            ", updateTime = " + updateTime +
            ", deviceEnabled = " + deviceEnabled +
            ", level = " + level +
            ", dataScope = " + dataScope +
        "}";
    }
}
